package com.hrbxlh.virtualization.exception;

import com.hrbxlh.virtualization.result.ResultEnum;

/**
 * @author cheer
 */
public class GlobalException extends RuntimeException{

    private static final long serialVersionUID = 1L;

    private ResultEnum resultEnum;

    public GlobalException(ResultEnum resultEnum) {
        super(resultEnum.toString());
        this.resultEnum = resultEnum;
    }

    public GlobalException(String message) {
        super(message);
    }

    public ResultEnum getResultEnum() {
        return resultEnum;
    }
}
